package com.chaber.containers.beans;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.MappedSuperclass;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@MappedSuperclass
public abstract class AbstractObjectData implements Serializable {
	private static final long serialVersionUID = 7335816711782897124L;
	
	@Temporal(TemporalType.TIMESTAMP)
	protected Date creationDate;
	
	@Temporal(TemporalType.TIMESTAMP)
	protected Date modificationDate;
	
	public abstract Object getId();
	
	public Date getCreationDate() {
		return creationDate;
	}
	public void setCreationDate(Date creationDate) {
		this.creationDate = creationDate;
	}
	public Date getModificationDate() {
		return modificationDate;
	}
	public void setModificationDate(Date modificationDate) {
		this.modificationDate = modificationDate;
	}
	
}
